<?php
/* Community */
$community = array(
	"first_page"=>new $pattern ($self, array(
	  '(:base_url)/(:ajax)$', 		'module'   => 'Node', 'action' => 'ShowHp',
		'ajax' => 'ajax',
		'is_ajax' => 1,
	  )),
	"filter"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'Filters',
		'act' => 'filter',
	  )),
	"filter_ajax"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:ajax)$',   'module'   => 'Community', 'action' => 'Filters',
		'act' => 'filter',
		'ajax' => 'ajax',
		'is_ajax' => 1,
	  )),
	"filter_edit"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'Filters',
		'act' => 'filter',
    'oid' => '[0-9]+'
	  )),
	"filter_edit_ajax"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)/(:ajax)$',   'module'   => 'Community', 'action' => 'Filters',
		'act' => 'filter',
    'oid' => '[0-9]+',
		'ajax' => 'ajax',
		'is_ajax' => 1,
	  )),
	"filter_delete"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'FilterDelete',
		'act' => 'delete_filter',
    'oid' => '[0-9]+'
	  )),
	"rss_list"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'RssList',
		'act' => 'rss_list',
	  )),
	"rss_delete"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'RssFeedDelete',
		'act' => 'delete_rss',
    'oid' => '[0-9]+'
	  )),
	"themes_list"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'ThemesList',
		'act' => 'themes_list',
	  )),
	"theme"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'Themes',
		'act' => 'theme',
	  )),
	"theme_edit"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'Themes',
		'act' => 'theme',
    'oid' => '[0-9]+'
	  )),
	"theme_delete"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'ThemeDelete',
		'act' => 'delete_theme',
    'oid' => '[0-9]+'
	  )),
	"rss_moderate"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'RssModerate',
		'act' => 'rss_moderate',
	  )),
	"rss_moderate_delete"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'RssModerateDelete',
		'act' => 'rss_moderate_delete',
    'oid' => '[0-9]+'
	  )),
	"rss_moderate_publish"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)/(:oid)$',   'module'   => 'Community', 'action' => 'RssModeratePublish',
		'act' => 'rss_moderate_publish',
    'oid' => '[0-9]+'
	  )),
	"rss_manage"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'RssSubscriptions',
		'act' => 'rss_manage',
	  )),
  /*
	"rss_import_opmpl"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'RssImportOPML',
		'act' => 'rss_import',
	  )),
  */
	"create_community"=>new $pattern ($self, array(
	  '(:base_url)/(:path)$', 		'module'   => 'Community', 'action' => 'ShowCommunityPrefs',
		'path' => 'createcommunity',
	  )),
	"edit_community"=>new $pattern ($self, array(
	  '(:base_url)/(:community_url)/(:path)$', 		'module'   => 'Community', 'action' => 'ShowCommunityPrefs',
		'path' => 'edit',
	  )),
	new $pattern ($self, array(
	  '(:base_url)/(:community_url)/(:path)/(:ajax)$', 		'module'   => 'Community', 'action' => 'ShowCommunityPrefs',
		'path' => 'edit',
		'ajax' => 'ajax',
		'is_ajax' => 1,
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:path)$',
		'module'   => 'Community',
		'action' => 'ShowCommunityProfile',
		'path' => 'profile',
		//'community_url' => '[a-zA-Z/-]+',
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'JoinCommunity',
		'act' => 'join',
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:act)$',   'module'   => 'Community', 'action' => 'LeaveCommunity',
		'act' => 'leave',
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:path)$',
		'module'   => 'Community',
		'action' => 'DeleteCommunity',
		'path' => 'deletecommunity',
		'oid' => '[0-9]+'
	  )),
	'community'=>
	new $pattern ($self, array(
		'(:base_url)/(:community_url)$',
		'module'   => 'Community',
		'action' => 'ShowDashboard',
		//'community_url' => '[a-zA-Z/-]+',
	)),
	"dashboard_ajax"=>new $pattern ($self, array(
	  	'(:base_url)/(:community_url)/(:path)$',
		'module'   => 'Community',
		'action' => 'ShowDashboard',
	  //	'community_url' => '[a-zA-Z/-]+',
		'path' => 'ajax',
		'is_ajax' => 1,
	  )),

);
